export const setLocalStore=(key,val)=>{
    let res;
    try {
        res = window.localStorage.setItem(key,val)
    } catch (error) {
        console.log('setLocalStore error:',error);
    }
    return res;
}
export const getLocalStore=(key)=>{
    let res;
    try {
        res = window.localStorage.getItem(key)

    } catch (error) {
        console.log('getLocalStore error:',error);
    }
    return res;
}
export const removeLocalStore=(key)=>{
    let res;
    try {
        res = window.localStorage.removeItem(key);

    } catch (error) {
        console.log('removeLocalStore error:',error);
    }
    return res;
}